import {createRouter, createWebHistory} from "vue-router"

const routes = [
    {
        path: "/",
        component: () => import('@/pages/index.vue')
    },
    {
        path: "/login",
        component: () => import('@/pages/login.vue')
    },
    {
        path: '/:pathMatch(.*)*',
        component: () => import('@/pages/404.vue')
    }, // 404 路由
]

const router = createRouter({
    history: createWebHistory(),
    routes,
});

export default router